package org.wattdepot.gdata.kukuicup.service;

import static org.junit.Assert.assertNotNull;
import org.junit.Test;
import org.wattdepot.gdata.kukuicup.GDataProperties;

/**
 * Tests the GDataService class.
 * @author Philip Johnson
 */
public class TestGDataService {
  /** Sample spreadsheet name. */
  private String spreadsheetName = "KukuiCupData";

  /**
   * Tests that a GDataService can be instantiated and a client can be retrieved.
   * @throws Exception If problems occur. 
   */
  @Test
  public void testGDataService() throws Exception {
    GDataProperties properties = new GDataProperties();
    GDataService service = new GDataService(properties);
    assertNotNull("Testing GDataService", 
        service.getSpreadsheetURL(spreadsheetName));
  }
}
